package us.wili.dev.model.base;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import us.wili.dev.common.model.BaseModelWithId;

public class BaseGoods extends BaseModelWithId implements Serializable {
    @ApiModelProperty(value="商品名称")
    private String goodsName;

    @ApiModelProperty(value="商品主图")
    private String goodsPic;

    @ApiModelProperty(value="商品价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value="商品大货")
    private String goodsBig;

    @ApiModelProperty(value="商品货号")
    private String goodsCargo;

    @ApiModelProperty(value="商品颜色")
    private Integer goodsColor;

    @ApiModelProperty(value="商品编号")
    private String goodsNumber;

    @ApiModelProperty(value="商品宽幅")
    private String goodsWide;

    @ApiModelProperty(value="商品季节")
    private String goodsSeason;

    @ApiModelProperty(value="商品克重")
    private String goodsG;

    @ApiModelProperty(value="商品用途")
    private String goodsUse;

    @ApiModelProperty(value="商品面料")
    private Integer goodsMaterial;

    @ApiModelProperty(value="商品轮播图")
    private String goodsImages;

    @ApiModelProperty(value="0:不参与活动")
    private Integer goodsActivity;

    @ApiModelProperty(value="商品详情")
    private String goodsDeta;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getGoodsPic() {
        return goodsPic;
    }

    public void setGoodsPic(String goodsPic) {
        this.goodsPic = goodsPic == null ? null : goodsPic.trim();
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsBig() {
        return goodsBig;
    }

    public void setGoodsBig(String goodsBig) {
        this.goodsBig = goodsBig == null ? null : goodsBig.trim();
    }

    public String getGoodsCargo() {
        return goodsCargo;
    }

    public void setGoodsCargo(String goodsCargo) {
        this.goodsCargo = goodsCargo == null ? null : goodsCargo.trim();
    }

    public Integer getGoodsColor() {
        return goodsColor;
    }

    public void setGoodsColor(Integer goodsColor) {
        this.goodsColor = goodsColor;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber == null ? null : goodsNumber.trim();
    }

    public String getGoodsWide() {
        return goodsWide;
    }

    public void setGoodsWide(String goodsWide) {
        this.goodsWide = goodsWide == null ? null : goodsWide.trim();
    }

    public String getGoodsSeason() {
        return goodsSeason;
    }

    public void setGoodsSeason(String goodsSeason) {
        this.goodsSeason = goodsSeason == null ? null : goodsSeason.trim();
    }

    public String getGoodsG() {
        return goodsG;
    }

    public void setGoodsG(String goodsG) {
        this.goodsG = goodsG == null ? null : goodsG.trim();
    }

    public String getGoodsUse() {
        return goodsUse;
    }

    public void setGoodsUse(String goodsUse) {
        this.goodsUse = goodsUse == null ? null : goodsUse.trim();
    }

    public Integer getGoodsMaterial() {
        return goodsMaterial;
    }

    public void setGoodsMaterial(Integer goodsMaterial) {
        this.goodsMaterial = goodsMaterial;
    }

    public String getGoodsImages() {
        return goodsImages;
    }

    public void setGoodsImages(String goodsImages) {
        this.goodsImages = goodsImages == null ? null : goodsImages.trim();
    }

    public Integer getGoodsActivity() {
        return goodsActivity;
    }

    public void setGoodsActivity(Integer goodsActivity) {
        this.goodsActivity = goodsActivity;
    }

    public String getGoodsDeta() {
        return goodsDeta;
    }

    public void setGoodsDeta(String goodsDeta) {
        this.goodsDeta = goodsDeta == null ? null : goodsDeta.trim();
    }

    public void copyPropertiesFrom(BaseGoods source) {
        this.setGoodsName(source.getGoodsName());
        this.setGoodsPic(source.getGoodsPic());
        this.setGoodsPrice(source.getGoodsPrice());
        this.setGoodsBig(source.getGoodsBig());
        this.setGoodsCargo(source.getGoodsCargo());
        this.setGoodsColor(source.getGoodsColor());
        this.setGoodsNumber(source.getGoodsNumber());
        this.setGoodsWide(source.getGoodsWide());
        this.setGoodsSeason(source.getGoodsSeason());
        this.setGoodsG(source.getGoodsG());
        this.setGoodsUse(source.getGoodsUse());
        this.setGoodsMaterial(source.getGoodsMaterial());
        this.setGoodsImages(source.getGoodsImages());
        this.setGoodsActivity(source.getGoodsActivity());
        this.setGoodsDeta(source.getGoodsDeta());
    }

    public void copyAndIgnoreNullFrom(BaseGoods source) {
        if (source.getGoodsName() != null) {
            this.setGoodsName(source.getGoodsName());
        }
        if (source.getGoodsPic() != null) {
            this.setGoodsPic(source.getGoodsPic());
        }
        if (source.getGoodsPrice() != null) {
            this.setGoodsPrice(source.getGoodsPrice());
        }
        if (source.getGoodsBig() != null) {
            this.setGoodsBig(source.getGoodsBig());
        }
        if (source.getGoodsCargo() != null) {
            this.setGoodsCargo(source.getGoodsCargo());
        }
        if (source.getGoodsColor() != null) {
            this.setGoodsColor(source.getGoodsColor());
        }
        if (source.getGoodsNumber() != null) {
            this.setGoodsNumber(source.getGoodsNumber());
        }
        if (source.getGoodsWide() != null) {
            this.setGoodsWide(source.getGoodsWide());
        }
        if (source.getGoodsSeason() != null) {
            this.setGoodsSeason(source.getGoodsSeason());
        }
        if (source.getGoodsG() != null) {
            this.setGoodsG(source.getGoodsG());
        }
        if (source.getGoodsUse() != null) {
            this.setGoodsUse(source.getGoodsUse());
        }
        if (source.getGoodsMaterial() != null) {
            this.setGoodsMaterial(source.getGoodsMaterial());
        }
        if (source.getGoodsImages() != null) {
            this.setGoodsImages(source.getGoodsImages());
        }
        if (source.getGoodsActivity() != null) {
            this.setGoodsActivity(source.getGoodsActivity());
        }
        if (source.getGoodsDeta() != null) {
            this.setGoodsDeta(source.getGoodsDeta());
        }
    }
}